home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
nt
/
source.exe
/
POSIX
/
SH
/
STD
/
STDC
/
STRPBRK.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-13
|
427b
|
22 lines
#include <string.h>
/*
* strpbrk - find first occurrence of any char from breakat in s
*/
char * /* found char, or NULL if none */
strpbrk(s, breakat)
Const char *s;
Const char *breakat;
{
register Const char *sscan;
register Const char *bscan;
for (sscan = s; *sscan != '\0'; sscan++) {
for (bscan = breakat; *bscan != '\0';) /* ++ moved down. */
if (*sscan == *bscan++)
return(sscan);
}
return(NULL);
}